class Militarnature < ActiveRecord::Base

  set_table_name "naturezamilitar"

  has_many :person

  validates_presence_of :id
  validates_presence_of :nome
  validates_uniqueness_of :id
  validates_numericality_of :id

  def to_s
    self.nome
  end
end
